package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorTwoMapper;
import com.erms.lab.domain.LabMajorTwo;
import com.erms.lab.service.ILabMajorTwoService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房二Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorTwoServiceImpl implements ILabMajorTwoService 
{
    @Autowired
    private LabMajorTwoMapper labMajorTwoMapper;

    /**
     * 查询专业机房二
     * 
     * @param equipId 专业机房二ID
     * @return 专业机房二
     */
    @Override
    public LabMajorTwo selectLabMajorTwoById(Long equipId)
    {
        return labMajorTwoMapper.selectLabMajorTwoById(equipId);
    }

    /**
     * 查询专业机房二列表
     * 
     * @param labMajorTwo 专业机房二
     * @return 专业机房二
     */
    @Override
    public List<LabMajorTwo> selectLabMajorTwoList(LabMajorTwo labMajorTwo)
    {
        return labMajorTwoMapper.selectLabMajorTwoList(labMajorTwo);
    }

    /**
     * 新增专业机房二
     * 
     * @param labMajorTwo 专业机房二
     * @return 结果
     */
    @Override
    public int insertLabMajorTwo(LabMajorTwo labMajorTwo)
    {
        return labMajorTwoMapper.insertLabMajorTwo(labMajorTwo);
    }

    /**
     * 修改专业机房二
     * 
     * @param labMajorTwo 专业机房二
     * @return 结果
     */
    @Override
    public int updateLabMajorTwo(LabMajorTwo labMajorTwo)
    {
        return labMajorTwoMapper.updateLabMajorTwo(labMajorTwo);
    }

    /**
     * 删除专业机房二对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorTwoByIds(String ids)
    {
        return labMajorTwoMapper.deleteLabMajorTwoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房二信息
     * 
     * @param equipId 专业机房二ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorTwoById(Long equipId)
    {
        return labMajorTwoMapper.deleteLabMajorTwoById(equipId);
    }
}
